package com.htl.exampro.question.pojo.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 题型代码表
 * </p>
 *
 * @author hehehe
 * @since 2025-05-25
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName("question_type")
public class QuestionTypeDO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    public static final String TYPE_ID = "type_id";
    public static final String TYPE_NAME = "type_name";
    public static final String CREATED_PERSON = "created_person";
    public static final String CREATED_TIME = "created_time";
    public static final String UPDATED_PERSON = "updated_person";
    public static final String UPDATED_TIME = "updated_time";
    public static final String IS_DELETED = "is_deleted";

    /**
     * 题型ID
     */
    @TableId(value = "type_id", type = IdType.ASSIGN_ID)
    private Integer typeId;

    /**
     * 题型名称（如：单选、多选等）
     */
    @TableField("type_name")
    private String typeName;

    /**
     * 创建人ID
     */
    @TableField(value = "created_person" ,fill = FieldFill.INSERT)
    private String createdPerson;

    /**
     * 创建时间
     */
    @TableField("created_time")
    private LocalDateTime createdTime;

    /**
     * 修改人ID
     */
    @TableField(value = "updated_person" ,fill = FieldFill.UPDATE)
    private String updatedPerson;

    /**
     * 修改时间
     */
    @TableField("updated_time")
    private LocalDateTime updatedTime;

    /**
     * 逻辑删除标志 0-未删除 1-已删除
     */
    @TableLogic
    @TableField("is_deleted")
    private Boolean isDeleted;
}
